<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="css/xi_mianze.css">
	<link rel="stylesheet" href="css/base.css">
	<script src="js/jquery.min.js"></script>
	<script src="js/base.js"></script>
	<link rel="stylesheet" href="css/zeroModal.css">
	<script src="js/zeroModal.min.js"></script>
	<style>
		.footer{
			padding-top:100px;
		}
	</style>
</head>
<body>
	<div class="box">
		<div class="header">
		 	<span>免责声明：</span>
		 	<form action="" method="get"> 
   	 			<textarea style="text-indent: 15px" name="DIVCSS5" cols="50%" rows="4" class="text mz_content"> 
    			</textarea>  
			</form> 
		</div>
		<!-- 按钮 -->
		<div class="footer">
			<button class="determine">确定</button>
			<button class="cancel">取消</button>
		</div>
	</div>
</body>
<script>
	$(function (){
		 $.ajax({
			url: baseNews + "/api/data/sys/statement",
			dataType: "json",
			data: {},
			success: function (res) {
				console.log(res, 6666);
				if (res.code == 0) {
					var obj = $(".mz_content");
					obj.val(res.data.content)
				}
			}
		})
		//
		$('.determine').on('click',function (){
				var objc = $(".mz_content").val();
				 var json = {

			}
			console.log(json)
			var result = JSON.stringify(json);
			$.ajax({
				url:baseNews+"/api/data/sys/statement/cfg?content="+objc,
				type: "post",
				headers: { 'Content-Type': 'application/json' },
				dataType: "json",
				data: result,
				success:function (res){
					if(res.code==0){
						location.reload();
					}else{
						zeroModal.alert(res.message);
					}
				}
			})
		})
	})
</script>
</html>